/**
 * @File Name: tcp_communication.h
 * @brief  
 * @Author : LiWanglin email:lwl510ll@163.com
 * @Version : 1.0
 * @Creat Date : 2024-01-28
 * 
 * @copyright Copyright (c) 2024 LiWanglin
 */

#ifndef __COMMUNICATION_TCP_COMMUNICATION_H
#define __COMMUNICATION_TCP_COMMUNICATION_H

#include "communication.h"

class TcpCommunication : public Communication
{
private:
    char *ip_addr;
    int port;

public:
    virtual CMResult init() override;
    virtual CMResult uninit() override;
    virtual CMResult set(int type, void *arg) override;
    virtual CMResult get(int type, void *arg) override;

    TcpCommunication();
    ~TcpCommunication();
};

#endif